package team.biocar.pojo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author DeSen Xu
 * @date 2021-11-09 22:41
 */
@TableName("t_balance")
@Data
public class Balance {

    // 照着之前的Article补全
    @TableId
    private int id;
    @TableField
    private Date date;
    @TableField("project_id")
    private int projectid;
    @TableField
    private BigDecimal revenue;
    @TableField
    private String master;
    @TableField
    private String note;
    @TableField("balance_type")
    private String blancetype;

    @Override
    public String toString() {
        return "Balance{" +
                "id=" + id +
                ", date=" + date +
                ", projectid=" + projectid +
                ", revenue=" + revenue +
                ", master='" + master + '\'' +
                ", note='" + note + '\'' +
                ", blancetype='" + blancetype + '\'' +
                '}';
    }
}
